@import "../../common/mixin.scss";
@mixin select-1 {
    background-color: rgba($color: #001b2f, $alpha: 0.24);
}

@mixin select-2 {
    background-color: rgba($color: #001b2f, $alpha: 0.2);
}

.LeftMenu {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 200px;
    height: 100%;
    padding-top: 10px;
    background-color: #0C4A50;
    background-image: url(./images/背景纹理.png);
    background-size: 200px 619px;
    background-position: bottom;
    background-repeat: no-repeat no-repeat;
    // background-image: linear-gradient(165deg, #064575 0%, #085286 50%, #0d75b0 100%), linear-gradient(#4976f7, #4976f7);
    .red-dot {
        position: absolute;
        top: 0;
        right: -10px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: #ff0000;
    }
    .link-select {
        .link-level-1 {
            padding-right: 25px;
            @include select-1;
        }
        .link-level-2 {
            @include select-2;
        }
    }
    .select-box {
        position: relative;
        width: 100%;
        display: inline-block;
        vertical-align: bottom;
        .select-sub {
            position: relative;
        }
        .link-arrow {
            position: absolute;
            right: 13px;
            top: 50%;
            cursor: pointer;
            transform: translateY(-50%) rotate(-90deg);
            width: 12px;
            height: 12px;
            background: url(./images/icon-arrow.png) no-repeat center center/12px 7px;
            -webkit-transform: translateY(-50%) rotate(-90deg);
            -moz-transform: translateY(-50%) rotate(-90deg);
            -ms-transform: translateY(-50%) rotate(-90deg);
            -o-transform: translateY(-50%) rotate(-90deg);
            transition: all 0.3s;
            -webkit-transition: all 0.3s;
            -moz-transition: all 0.3s;
            -ms-transition: all 0.3s;
            -o-transition: all 0.3s;
            &.link-arrow-open {
                transform: translateY(-50%) rotate(0deg);
                -webkit-transform: translateY(-50%) rotate(0deg);
                -moz-transform: translateY(-50%) rotate(0deg);
                -ms-transform: translateY(-50%) rotate(0deg);
                -o-transform: translateY(-50%) rotate(0deg);
            }
        }
        .link-child-box {
            height: 0;
            overflow: hidden;
            width: 100%;
            transition: height 0.3s;
            -webkit-transition: height 0.3s;
            -moz-transition: height 0.3s;
            -ms-transition: height 0.3s;
            -o-transition: height 0.3s;
            &.link-child-open {
                // height: 100px;
                height: auto;
            }
        }
    }
    .link-bar {
        position: relative;
        display: inline-block;
        width: 100%;
        height: 50px;
        line-height: 50px;
        vertical-align: bottom;
        background-color: rgba($color: #001b2f, $alpha: 0);
        // 省略好的颜色
        color: rgba($color: #ffffff, $alpha: 0.8);
        @include textOverFlow;
        .link-icon {
            display: inline-block;
            height: 100%;
            vertical-align: top;
        }
        &.link-level-1 {
            height: 50px;
            line-height: 50px;
            .link-icon {
                width: 48px;
                background-repeat: no-repeat;
                background-position: 21px center;
                background-size: auto;
            }
            &:hover,
            &.link-select {
                @include select-1;
            }
        }
        &.link-level-2 {
            height: 44px;
            line-height: 44px;
            padding-left: 48px;
            background-color: rgba($color: #001b2f, $alpha: 0.1);
            .link-icon {
                width: 12px;
                background-repeat: no-repeat;
                background-position: 21px center;
                background-size: auto;
                &.dot {
                    position: relative;
                    &::before {
                        content: "";
                        position: absolute;
                        width: 4px;
                        height: 4px;
                        left: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        -webkit-transform: translateY(-50%);
                        -moz-transform: translateY(-50%);
                        -ms-transform: translateY(-50%);
                        -o-transform: translateY(-50%);
                        border-radius: 50%;
                        -webkit-border-radius: 50%;
                        -moz-border-radius: 50%;
                        -ms-border-radius: 50%;
                        -o-border-radius: 50%;
                        background: rgba($color: #ffffff, $alpha: 0.8);
                        &:hover {
                            background: rgba($color: #ffffff, $alpha: 1);
                        }
                    }
                }
            }
            &:hover,
            &.link-select {
                @include select-2;
            }
            &.link-select {
                .link-name {
                    font-weight: 700;
                    color: #fff
                }
            }
        }
        .link-name {
            position: relative;
            font-size: 14px;
            color: rgba($color: #ffffff, $alpha: 0.8);
        }
        &:hover {
            color: rgba($color: #ffffff, $alpha: 1);
            .link-name {
                color: rgba($color: #ffffff, $alpha: 1);
            }
        }
    }
}